import {Component} from '@angular/core';
import {MessageService} from "primeng/api";

@Component({
  selector: 'app-message',
  templateUrl: './message.component.html'
})
export class MessageComponent {

  constructor(private messageService: MessageService) {

  }

  success() {
    this.messageService.add({severity: 'success', summary: '成功', detail: '信息已保存', sticky: true});
  }

}
